<?php

namespace api\energy\factory\electric;

use api\energy\common\Request;

/**
 * 查询电表采集器列表
 *
 * @method QueryElectricCollectorList setpage(int $data) 页码
 * @method QueryElectricCollectorList setlimit(int $data) 每页数量
 */
class QueryElectricCollectorList extends Request
{

    public function __construct(int $page = null, int $limit = null)
    {
        $page && $this->setpage($page);
        $limit && $this->setlimit($limit);
    }

    public function build()
    {
        $this->setUrl("/electric/collector/list");
        $this->setMethod('POST');

        $this->setRequestData($this->getRequestData());
    }

}